[MSBuild] How to set 'condition' using a condition stored in a property?
Posted
by Nam Gi VU
on Stack Overflow
See other posts from Stack Overflow
or by Nam Gi VU
Published on 2010-03-23T10:56:01Z
Indexed on
2010/03/24
0:33 UTC
Read the original article
Hit count: 436
I have a condition such as 'a==1' stored in property $(c) and I wanna used it as the condition for task Message like below code:
<PropertyGroup>
<aa>1>2</aa>
</PropertyGroup>
<Target Name="t">
<Message Text="122333" Condition="$(aa)" />
</Target>
Error was raised! So, how can I do it? Please help!
© Stack Overflow or respective owner